//
//  ApiResponse.h
//  MyFrameWork
//
//  Created by eason on 16/4/25.
//  Copyright © 2016年 普惠. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NSDictionary+Add.h"

@protocol IResponse

- (void)resolveWithAttributes:(id)attributes;

@end

@interface ApiResponse : NSObject

@property (nonatomic, assign) int flag;
@property (nonatomic, assign) int msgcode;
@property (nonatomic, strong) NSString * msg;
@property (nonatomic, strong) id response;
@property (nonatomic, strong) id responseObj;

- (instancetype)initWithAttributes:(NSDictionary *)attributes;
- (void)resolveResponse:(id<IResponse>)resolveObj;


@end
